package com.nq.activaity.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 用户指定奖品表
 * @Author: jeecg-boot
 * @Date:   2024-11-06
 * @Version: V1.0
 */
@Data
@TableName("st_user_specified_prize")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class StUserSpecifiedPrize implements Serializable {
    private static final long serialVersionUID = 1L;

	// 待使用
	public static final Integer EFFECTIVE_STATUS_INITIAL = 0;
	// 锁定
	public static final Integer EFFECTIVE_STATUS_LOCKED = 1;
	// 已使用
	public static final Integer EFFECTIVE_STATUS_USED = 2;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    private String id;
	/**用户ID*/
	@Excel(name = "用户ID", width = 15)
    private Integer userId;
	/**奖品ID*/
	@Excel(name = "奖品ID", width = 15)
    private String prizeId;
	/**生效状态*/
	@Excel(name = "生效状态", width = 15)
    private Integer effectiveStatus;
	/**生效时间*/
	@Excel(name = "生效时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date effectiveTime;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
